from django.db import models

# Create your models here.
class Param(models.Model):
    name = models.CharField(max_length=50)
    value = models.CharField(max_length=100)
    item_set = models.ManyToManyField('Item')
    
    def __unicode__(self):
        return '%s(%s)' % (self.name, self.value)

class Item(models.Model):
    type = models.CharField(max_length=50)
    
    def __unicode__(self):
        return '%s' % (self.type)
